package com.zhixi.pattern.important.decoratorpattern.operation.decoratior;

import com.zhixi.pattern.important.decoratorpattern.operation.AbstractMilkTea;

/**
 * 巧克力
 *
 * @作者 ShuHaoNan
 * @邮箱 shuhaonan1@gmail.com
 * @时间 2020/11/17 15:25
 */
public class Chocolate extends Decorator {

    public Chocolate(AbstractMilkTea milkTea) {
        super(milkTea);
    }

    private void add() {
        System.out.println("添加巧克力");
    }

    @Override
    public void startMakeMilkTea() {
        super.startMakeMilkTea();
        add();
    }
}
